package anish.lab6;

public class Demo {

	public static void main(String[] args) {
		Ticket newTicket = new Ticket();
		Ticket newTicket1 = new Ticket(18, 1);
		Ticket newTicket2 = new Ticket(2, 18);

		if (newTicket.validateTravelPoints()) {
			newTicket.calculateTicketAmt();
			System.out.println("Ticket amount: $" + newTicket.ticketAmount);
		} else {
			System.out
					.println("Start/Endpoint error, please check & try again.");
		}

		if (newTicket1.validateTravelPoints()) {
			newTicket1.calculateTicketAmt();
			System.out.println("Ticket amount: $" + newTicket1.ticketAmount);
		} else {
			System.out
					.println("Start/Endpoint error, please check & try again.");
		}

		if (newTicket2.validateTravelPoints()) {
			newTicket2.calculateTicketAmt();

			System.out.println("Ticket amount: $" + newTicket2.ticketAmount);
		} else {
			System.out
					.println("Start/Endpoint error, please check & try again.");

		}

	}
}
